<div class="fadeIn">
    <br>
    <ol class="breadcrumb">
        <li class="active"><span class="glyphicon glyphicon-home" style="color:#23527c"></span>&nbsp;<mainpage></mainpage></li>
        <li class="active">监控工作台 / 短信平台监控 / 短信通道监控</li>
    </ol>
    
    
    <div ng-init="now=0;">
      <ul class="btn-groupTab clearfix">
         <li style='width:15%' class="{{now==0?'activeTab':''}}" ng-click="now=0"><a>发送短信</a></li>
         <li style='width:15%' class="{{now==1?'activeTab':''}}" ng-click="now=1"><a>接收短信</a></li>
        <!--  <input type="button" value="Tab3" class="{{now==2?'activeTab':''}}" ng-click="now=2"> -->
      </ul>
      <div class="contentTab" ng-show="now==0">
    <form class="form-inline clearfix">
        <div class="marT15 left marR10">
            <span class="search-name">时间选择</span>
            <div class="controls">
                <div class="input-prepend input-group">
                    <span class="input-group-addon"><i class="glyphicon glyphicon-calendar fa fa-calendar"></i></span><input type="text" readonly style="width: 155px" name="reservation" id="smsMonitorDate" class="form-control" value="2017-3-21 - 2017-5-21" />
                     <span class="input-group-addon" ng-click='clearTime()'>清空</span>
                </div>
            </div>
        </div>
         <a class=" btn btn-primary btn-sm left marT15" ng-click='search()'><span class="glyphicon glyphicon-search"></span></a>
         <div class="right marT15" style="position:relative">
                <button class="btn btn-sm btn-primary" ng-click='outExcel()'><img style="width:25px; height:20px;" src="img/excel.png">导出表格<span ng-style='loadStyle' class="outExcelLoad"><img  src="img/load.gif"></span>
                </button>
          </div>
    </form>
        
       <form method="post" id="form" action="gateReport/out-excel">
             <input type="text" style="display: none;" ng-model='searchData.startDate' name="startDate">
             <input type="text" style="display: none;" ng-model='searchData.endDate' name="endDate">
      </form>
      <div class="table-box marT15">

        <table class="table table-bordered table-striped text-center bg-info">
            <thead >
            <tr class="info">
                <th class="text-center">序号</th>
                <th class="text-center w115">日期</th>
                <th class="text-center w115">短信通道ID</th>
                <th class="text-center w115">短信通道名称</th>
                <!-- <th class="text-center">状态</th>
                <th class="text-center w85">连接时长</th> -->
               <!--  <th class="text-center w115">待发送短信（条）</th> -->
                <th class="text-center w115">已发送短信（条）</th>
                <th class="text-center w125">发送成功短信（条）</th>
                <th class="text-center w125">发送失败短信（条）</th>
                <th class="text-center w115">发送成功率</th>
                <th class="text-center w140">已返回结果报告（条）</th>
                <th class="text-center w140">待返回结果短信（条）</th>
             <!--    <th class="text-center w125">上行短信数（条）</th> -->
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat='item in result.list'>
                <td>{{$index+1}}</td>
                <td>{{item.sday}}</td>
                <td>{{item.gateLinkId}}</td>
                <td>{{item.gateLinkName}}</td>
               <!--  <td>{{item.connectStatus}}</td>
                <td>{{item.connectTimes}}</td> -->
               <!--  <td>{{item.sendNone}}</td> -->
                <td>{{item.total}}</td>
                <td>{{item.sendSuc}}</td>
                <td>{{item.sendFail}}</td>
                <td>{{item.sendSucRate}}</td>
                <td>{{item.upReturn}}</td>
                <td>{{item.upNone}}</td>
             <!--    <td>{{item.upTotal}}</td> -->
            </tr>
          
            <tr>               
                <td colspan="4">汇总</td>
             <!--    <td>{{result.sendNoneCount}}</td> -->
                <td>{{result.totalCount}}</td>
                <td>{{result.sendSucCount}}</td>
                <td>{{result.sendFailCount}}</td>
                <td>{{result.sendSucRateCount}}</td>
                <td>{{result.upReturnCount}}</td>
                <td>{{result.upNoneCount}}</td>
             <!--    <td>{{result.upTotalCount}}</td> -->
            </tr>
            </tbody>
        </table>
      </div>
      </div>
      </div>
            <div class="contentTab" ng-show="now==1">
    <form class="form-inline clearfix">
        <div class="marT15 left marR10">
            <span class="search-name">时间选择</span>
            <div class="controls">
                <div class="input-prepend input-group">
                    <span class="input-group-addon"><i class="glyphicon glyphicon-calendar fa fa-calendar"></i></span><input type="text" readonly style="width: 155px" name="reservation" id="smsMonitorDate1" class="form-control" value="2017-3-21 - 2017-5-21" />
                     <span class="input-group-addon" ng-click='clearTime1()'>清空</span>
                </div>
            </div>
        </div>
         <a class=" btn btn-primary btn-sm left marT15" ng-click='search1()'><span class="glyphicon glyphicon-search"></span></a>
         <div class="right marT15" style="position:relative">
                <button class="btn btn-sm btn-primary" ng-click='outExcel1()'><img style="width:25px; height:20px;" src="img/excel.png">导出表格<span ng-style='loadStyle1' class="outExcelLoad"><img  src="img/load.gif"></span>
                </button>
          </div>
    </form>
        
       <form method="post" id="form1" action="gateReport/out-excel-up">
             <input type="text" style="display: none;" ng-model='searchData1.startDate' name="startDate">
             <input type="text" style="display: none;" ng-model='searchData1.endDate' name="endDate">
      </form>
      <div class="table-box marT15">

        <table class="table table-bordered table-striped text-center bg-info">
            <thead >
            <tr class="info">
                <th class="text-center">序号</th>
                <th class="text-center w115">日期</th>
                <th class="text-center w115">短信通道ID</th>
                <th class="text-center w115">短信通道名称</th>
                <!-- <th class="text-center">状态</th>
                <th class="text-center w85">连接时长</th> -->
               <!--  <th class="text-center w115">待发送短信（条）</th> -->
                <!-- <th class="text-center w115">已发送短信（条）</th>
                <th class="text-center w125">发送成功短信（条）</th>
                <th class="text-center w125">发送失败短信（条）</th>
                <th class="text-center w115">发送成功率</th>
                <th class="text-center w140">已返回结果报告（条）</th>
                <th class="text-center w140">待返回结果短信（条）</th> -->
                <th class="text-center w125">上行短信数（条）</th>
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat='item in result1.list'>
                <td>{{$index+1}}</td>
                <td>{{item.sday}}</td>
                <td>{{item.gateLinkId}}</td>
                <td>{{item.gateLinkName}}</td>
               <!--  <td>{{item.connectStatus}}</td>
                <td>{{item.connectTimes}}</td> -->
               <!--  <td>{{item.sendNone}}</td> -->
               <!--  <td>{{item.total}}</td>
                <td>{{item.sendSuc}}</td>
                <td>{{item.sendFail}}</td>
                <td>{{item.sendSucRate}}</td>
                <td>{{item.upReturn}}</td>
                <td>{{item.upNone}}</td> -->
                <td>{{item.upTotal}}</td>
            </tr>
          
            <tr>               
                <td colspan="4">汇总</td>
             <!--    <td>{{result.sendNoneCount}}</td> -->
               <!--  <td>{{result.totalCount}}</td>
                <td>{{result.sendSucCount}}</td>
                <td>{{result.sendFailCount}}</td>
                <td>{{result.sendSucRateCount}}</td>
                <td>{{result.upReturnCount}}</td>
                <td>{{result.upNoneCount}}</td> -->
                <td>{{result1.upTotalCount}}</td>
            </tr>
            </tbody>
        </table>
      </div>
      </div>
    </div>
<!-- 加载框 -->
  <span class='loaded' ng-show='loaded'><img  src="img/load.gif"></span>
<!-- 加载框 完成-->




